using UnityEngine;
using System.Collections;

public class _Barrier2 : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnCollisionEnter (Collision c)
	{
		if(c.gameObject.CompareTag("Player"))
		{
			Application.LoadLevel("SelecaoCenas");
		}
	}
	
	void OnCollisionStay(Collision c)
	{
		if(c.gameObject.CompareTag("Player"))
		{
			Application.LoadLevel("SelecaoCenas");
		}
	}
}
